{"ast":null,"code":"import React from'react';import{CSSTransition,TransitionGroup}from'react-transition-group';import ToDoItem from'./ToDoItem';import{jsx as _jsx}from\"react/jsx-runtime\";export default function ToDoList(_ref){var toDoItems=_ref.toDoItems,getTask=_ref.getTask,setVisibleModal=_ref.setVisibleModal,remove=_ref.remove;return/*#__PURE__*/_jsx(\"div\",{className:\"to-do-list\",children:/*#__PURE__*/_jsx(TransitionGroup,{children:toDoItems.map(function(toDO,index){return/*#__PURE__*/_jsx(CSSTransition,{timeout:500,classNames:\"toDo\",children:/*#__PURE__*/_jsx(ToDoItem,{setVisibleModal:setVisibleModal,getTask:getTask,remove:remove,number:index+1,toDo:toDO})},toDO.id);})})});}","map":{"version":3,"names":["React","CSSTransition","TransitionGroup","ToDoItem","ToDoList","toDoItems","getTask","setVisibleModal","remove","map","toDO","index","id"],"sources":["/Users/iliyagladkov/to-do-react/src/components/ToDoList.jsx"],"sourcesContent":["import React from 'react'\nimport { CSSTransition, TransitionGroup } from 'react-transition-group'\nimport ToDoItem from './ToDoItem'\n\nexport default function ToDoList({toDoItems, getTask, setVisibleModal, remove}) {\n  return (\n    <div className='to-do-list'>\n      <TransitionGroup>\n        {toDoItems.map( (toDO, index) => {\n            return( \n              <CSSTransition\n                key={toDO.id}\n                timeout={500}\n                classNames=\"toDo\"\n              >\n                <ToDoItem setVisibleModal={setVisibleModal} getTask ={getTask} remove={remove} number={index + 1} toDo={toDO}/>\n              </CSSTransition>    \n            )\n        })}\n      </TransitionGroup>\n    </div>\n  )\n}\n"],"mappings":"AAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,OAASC,aAAa,CAAEC,eAAe,KAAQ,wBAAwB,CACvE,MAAOC,SAAQ,KAAM,YAAY,4CAEjC,cAAe,SAASC,SAAQ,MAAgD,IAA9CC,UAAS,MAATA,SAAS,CAAEC,OAAO,MAAPA,OAAO,CAAEC,eAAe,MAAfA,eAAe,CAAEC,MAAM,MAANA,MAAM,CAC3E,mBACE,YAAK,SAAS,CAAC,YAAY,uBACzB,KAAC,eAAe,WACbH,SAAS,CAACI,GAAG,CAAE,SAACC,IAAI,CAAEC,KAAK,CAAK,CAC7B,mBACE,KAAC,aAAa,EAEZ,OAAO,CAAE,GAAI,CACb,UAAU,CAAC,MAAM,uBAEjB,KAAC,QAAQ,EAAC,eAAe,CAAEJ,eAAgB,CAAC,OAAO,CAAGD,OAAQ,CAAC,MAAM,CAAEE,MAAO,CAAC,MAAM,CAAEG,KAAK,CAAG,CAAE,CAAC,IAAI,CAAED,IAAK,EAAE,EAJ1GA,IAAI,CAACE,EAAE,CAKE,CAEtB,CAAC,CAAC,EACc,EACd,CAEV"},"metadata":{},"sourceType":"module","externalDependencies":[]}